package com.itjin.resume_back.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itjin.resume_back.entity.Project;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface ProjectService extends IService<Project> {
  // 创建项目
  void createProject(Long userId, String name, String description, String techStack, MultipartFile file)
      throws IOException;

  // 更新项目
  void updateProject(Long id, String name, String description, String techStack, MultipartFile file) throws IOException;

  // 审核项目
  void approveProject(Long id, Integer status);

  // 删除项目
  void deleteProject(Long id) throws IOException;

  // 获取项目文件
  byte[] getProjectFile(Long id) throws IOException;

  // 增加下载次数
  void incrementDownloadCount(Long id);
}